]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenShield: Pop the modal immediately
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 22 May 2013 16:06:11 +0000 (12:06 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 22 May 2013 16:11:19 +0000 (12:11 -0400)
Allow people to start typing immediately after unlocking their
session, rather than having to wait for a transition.

https://bugzilla.gnome.org/show_bug.cgi?id=700847

js/ui/screenShield.js

index cfd55b95a9232b1f1076136b2c4008486c988a3a..48cfaa604c9060c9a26bc878ed2d40a3efeb0929 100644 (file)
@@ -1133,6 +1133,14 @@ const ScreenShield = new Lang.Class({
         if (Main.sessionMode.currentMode == 'unlock-dialog')
             Main.sessionMode.popMode('unlock-dialog');
 
+        if (this._dialog && !this._isGreeter)
+            this._dialog.popModal();
+
+        if (this._isModal) {
+            Main.popModal(this.actor);
+            this._isModal = false;
+        }
+
         Tweener.addTween(this._lockDialogGroup, {
             scale_x: 0,
             scale_y: 0,
@@ -1150,12 +1158,6 @@ const ScreenShield = new Lang.Class({
         }
 
         this._lightbox.hide();
-
-        if (this._isModal) {
-            Main.popModal(this.actor);
-            this._isModal = false;
-        }
-
         this.actor.hide();
 
         if (this._becameActiveId != 0) {